<%@ Page Language="C#" MasterPageFile="~/MasterPages/Default.Master" AutoEventWireup="true" CodeBehind="Member.aspx.cs" Inherits="Mindscape.BackgroundMotion.Website.MemberDetails" Title="Member" %>
<%@ Register TagPrefix="mindscape" TagName="ContributionGrid" Src="~/Controls/ContributionGrid.ascx" %>
<%@ Register Src="Controls/PagingControl.ascx" TagName="PagingControl"    TagPrefix="mindscape" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TopContent" runat="server">
  <mindscape:PagingControl id="PagingControl" runat="server"/>         
</asp:Content>

<asp:Content ContentPlaceHolderID="BodyContent" runat="server">
<h1><asp:Literal ID="Username" runat="Server"/></h1>
<p>Last Active: <asp:Literal ID="LastActiveDate" runat="server" /></p>

<asp:PlaceHolder ID="Contributions" runat="server">
  <h2>Contributions</h2>
  <mindscape:ContributionGrid ID="ContributionGrid" runat="Server" />
</asp:PlaceHolder>

<asp:PlaceHolder ID="UnapprovedContributions" runat="server">
  <div style="clear:both;" />
  <h2>Unapproved Contributions</h2>
  <mindscape:ContributionGrid ID="UnapprovedContributionGrid" runat="Server" />
</asp:PlaceHolder>

<mindscape:WebDataBinder runat="server" ID="DataBinder">
  <BindingItems>
    <mindscape:WebDataBindingItem runat="server" BindingMode="OneWay" BindingSource="Member" BindingSourceMember="Username" TargetControl="Username"/>        
    <mindscape:WebDataBindingItem runat="server" BindingMode="OneWay" BindingSource="Member" BindingSourceMember="LastActiveDate" TargetControl="LastActiveDate" DisplayFormat="dd/MM/yyyy"/>  
    <mindscape:WebDataBindingItem runat="server" BindingMode="OneWay" BindingSource="this" BindingSourceMember="HasContributions" TargetControl="Contributions" TargetControlProperty="Visible"/>  
    <mindscape:WebDataBindingItem runat="server" BindingMode="OneWay" BindingSource="this" BindingSourceMember="HasUnapprovedContributions" TargetControl="UnapprovedContributions" TargetControlProperty="Visible"/> 
  </BindingItems>
</mindscape:WebDataBinder>

</asp:Content>
